package com.ganbo.rabbitmq.basic.redirect;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 基本消息消费
 *
 * @Author: ganbo
 * @Date: 2020/12/8 19:21
 */


@Component
@RabbitListener(queues = DirectConfig.TOPIC_direct1) //配置监听的队列
public class DirectConsumer1 {


    @RabbitHandler
    public void process(String msg) {
        System.out.println("==========111==>消费者接受到消息=====>" + msg.toString());
    }

}
